package auth

class LoginTagLib {
	def loginControl = {
		if(session.user){
		  out << "Hallo ${session.user.login} "
		  out << """[${link(action:"logout", controller:"user"){"logout"}}]"""
		} else {
		  out << """[${link(action:"login", controller:"user"){"login"}}]"""
		}
	  }
}
